import { reqBannerList } from "@/api";
const actions = {
    async getBannerList(context,value){
        let result = await reqBannerList()
        console.log(result);
        if(result.code==200){
            context.commit('GETBANNERLIST',result.banners)
        }
    }
}
const mutations = {
    GETBANNERLIST(state,banners){
        state.banners = banners
    }
}
const state = {
    banners:[],
}
const getters = {

}
export default {
    state,
    actions,
    mutations,
    getters
}